<%@ page contentType="text/html; charset=utf-8" language="java"  %>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<sx:head debug="true"/>
<title>菜单维护</title>
</head>

<body>
<p><a href="menu_edit_form">添加</a></p>
<table width="100%" border="0" cellspacing="2" cellpadding="2">
  <tr bgcolor="#6699FF">
    <th>名称</th>
    <th>url</th>
    <th>&nbsp;</th>
  </tr>
  <s:if test="menuList.size > 0">
  <s:iterator value="menuList">
  <tr bgcolor="#CCCCCC">
    <td>
<!--    	<input type="checkbox" name="checkbox" id="checkbox" />-->
    	<s:property value="name" />
    </td>
    <td><s:property value="url"/> &nbsp;</td>
    <s:url action="menu_edit_form" id="menuEditUrl">
    	<s:param name="menuId" value="id"></s:param>
    </s:url>
    <s:url action="menu_delete" id="menuDeleteUrl">
    	<s:param name="menuId" value="id"></s:param>
    </s:url>
    <td>
    	<s:a href="%{menuEditUrl}">编辑</s:a>  
    	<s:a href="%{menuDeleteUrl}">删除</s:a> 
    </td>
  </tr>
  </s:iterator>
  </s:if>
</table>
</body>
</html>
